package com.orange.quickback.system.service.code.generator;

import com.orange.quickback.system.api.common.result.QBootResult;
import com.orange.quickback.system.entities.code.generator.QBootColumnSet;
import org.springframework.stereotype.Service;

@Service
public interface QBootCodeGeneratorService {
    /**
     * 获取数据表模板
     * @param qBootColumnSet
     * @return
     */
    QBootResult getTableTemplate(QBootColumnSet qBootColumnSet);

    /**
     * 获取历史字段
     * @param page
     * @param size
     * @return
     */
    QBootResult getAllColumnSet(int page,int size);

    /**
     * 获取Java实体类代码
     * @param qBootColumnSet
     * @return
     */
    QBootResult getEntityTemplate(QBootColumnSet qBootColumnSet);
    /**
     * 报错数据表模板
     */
    QBootResult saveTableTemplate(QBootColumnSet qBootColumnSet);
    /**
     * 获取DAO层
     */
    QBootResult getDAOTemplate(QBootColumnSet qBootColumnSet);
    /**
     * 获取API
     */
    QBootResult getTableApiTemplate(QBootColumnSet qBootColumnSet);
    /**
     * service
     */
    QBootResult getApiControllerTemplate(QBootColumnSet qBootColumnSet);
    /**
     *
     */
    QBootResult getApiServiceTemplate(QBootColumnSet qBootColumnSet);
}
